package com.travel.user.controller;


import com.travel.entity.dto.ResultVO;
import com.travel.sso.TravelUser;
import com.travel.user.service.ITravelUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author muzi
 * @since 2021-04-15
 */
@RestController
@RequestMapping("/user")
public class TravelUserController {

    @Autowired
    private ITravelUserService iTravelUserService;

    @RequestMapping("login")
    public ResultVO<TravelUser> login(@RequestBody TravelUser travelUser){
        return iTravelUserService.login(travelUser);
    }



}
